<template>
  <div ref="myDiv" class="radar-echart"></div>
</template>

<script>
<<<<<<< HEAD
import { thirdTwo1Api, thirdTwo2Api } from "@/api/dashboard";
=======
>>>>>>> gxd
import * as Echarts from "echarts";
import Tabley from "./tabley";
export default {
  name: "Tabley",
<<<<<<< HEAD
  data() {
    return {
      data1: [],
      data2: [],
    };
  },
  mounted() {
    this.echarts = Echarts.init(this.$refs.myDiv);
    this.echarts.setOption(Tabley);
    this.initData();
  },
  methods: {
    async initData() {
      let { tabley } = await thirdTwo1Api();
      let { tabley2 } = await thirdTwo2Api();
      // console.log(tabley, tabley2);
      this.data1 = tabley;
      this.data2 = tabley2;
      //重新绘制
      Tabley.series[0].data = this.data1;
      Tabley.series[1].data = this.data2;
      this.echarts.setOption(Tabley);
    },
=======
  mounted() {
    this.echarts = Echarts.init(this.$refs.myDiv);
    this.echarts.setOption(Tabley);
>>>>>>> gxd
  },
};
</script>

<style lang="scss" scoped>
.radar-echart {
  width: 530px;
  height: 322px;
}
</style>